/**
 * Created by x on 17-8-6.
 */

angular.module('tribalc').service('LockinfoModel',['$rootScope','Check' ,function ($rootScope,Check){


    var LockModel = function (object) {
        var self = this;
        init();
        function init() {

            self.id =object? object.id :null;
            self.sn =object ? object.sn : null;
            self.apartmentId =object ? object.apartmentId : null;
            self.doorType =object ? object.doorType : null;
            self.lockName =object ? object.lockName : null;
            self.electric =object ? object.electric : null;
            self.state =object ? object.state : null;
            self.door=object ? object.door : null;
        }

    };



    LockModel.prototype.getObject = function () {

        return {
            id:this.id,
            sn: this.sn,
            apartmentId: this.apartmentId,
            doorType: this.doorType,
            lockName: this.lockName,
            electric: this.electric,
            state: this.state,
            door:this.door
        };
    };

    return LockModel;


}]);